package com.hyl.mapper;

import com.hyl.entity.Address;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Address
 *
 * @author hyl
 * @date 2025-05-28
 */
public interface AddressMapper {

    //2个条件，userId和contact未知是否传递
    List<Address> selectByParams(@Param("userId") Integer userId,
                                 @Param("contact") String contact);



    //区间条件：createTime
    List<Address> selectByTime(@Param("beginCreateTime") String beginCreateTime,
                               @Param("endCreateTime") String endCreateTime);


//    int delete(Integer[] ids);

    int delete(List<Integer> ids);

    int update(Address address);

}
